package com.yihang.wuapiclientsdk;

import com.yihang.wuapiclientsdk.client.wuapiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * wuapi 客户端配置
 *
 */
@Configuration
@ConfigurationProperties("wuapi.client")
@Data
@ComponentScan
public class wuapiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public wuapiClient wuapiClient() {
        return new wuapiClient(accessKey, secretKey);
    }

}
